package com.gouaixin.bee.beeframework2.bean;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Author: wyouflf
 * Date: 13-7-25
 * Time: 下午7:06
 */
// 建议加上注解， 混淆后表名不受影响
@Table(name = "MSG")
public class MSG implements Serializable {

    public static final int SEND = 1;//我发送给机器人的消息
    public static final int RECEIVER = 2;//机器人回复的消息

    private int _id;

    @Column(column = "jid") //机器人id
    public String jid;

    @Column(column = "content")
    private String content;//内容

    @Column(column = "flag")
    private int flag;//标签(发送/接受)

    @Column(column = "time")
    private String time;//时间

    @Column(column = "cid")
    private String cid;//当前用户的id

    @Column(column = "cname")
    private String cname;//当前用户的昵称

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getJid() {
        return jid;
    }

    public void setJid(String jid) {
        this.jid = jid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
}
